<@override name="title">小票积分明细</@override>

<@override name="viewbody">
<!-- Page title -->
<div class="row">
    <div class="col-md-12">
        <h3 class="page-title">
            系统统计
            <small>小票积分明细</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/admin/home">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="${ctx}/admin/stat/ticket">
                    小票积分统计
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    小票积分明细
                </a>
            </li>
        </ul>
    </div>
</div>
<!-- /page title -->

<div class="row">
    <div class="col-md-12">
        <div class="portlet box light-grey">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-globe"></i>${real_name} ${optDate} 小票积分操作明细
                </div>
            </div>
            <div class="portlet-body">
                <div class="table-toolbar">
                    <form action="#" class="form-inline" id="search_form">
                        <input type="hidden" name="customer" value="${customer}"/>
                        <input type="hidden" name="optDate" value="${optDate}"/>
                        <div class="form-group">
                            <label for="member">会员:</label>
                            <input type="text" class="form-control" id="member" name="member">
                        </div>
                        <div class="form-group">
                            <label for="ticket">小票号:</label>
                            <input type="text" class="form-control" id="ticket" name="ticket">
                        </div>
                        <button class="btn blue filter-submit margin-bottom" id="search_btn">
                            <i class="fa fa-search"></i> 检索
                        </button>
                    </form>
                </div>

                <table class="table table-striped table-bordered table-hover" id="data-list">
                    <thead>
                    <tr>
                        <th width="30"><input type="checkbox" name="checkall"></th>
                        <th width="50">序号</th>
                        <th>时间</th>
                        <th>操作人员名称</th>
                        <th>操作人员帐号</th>
                        <th>小票号</th>
                        <th>是否微信上传</th>
                        <th>小票图片</th>
                        <th>积分</th>
                    </tr>
                    </thead>
                    <tbody>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script id="wx_template" type="text/x-handlers-template">
    {{#if wx}}
    <span class="label label-success">
             是
        </span>
    {{else}}
    <span class="label label-danger">
             否
        </span>
    {{/if}}
</script>

<script id="pricute_template" type="text/x-handlebars-template">
    {{#if pricute}}
    <#--<a href="${ctx}{{pricute}}" class="thumbnail fancybox-button" data-rel="fancybox-button">
        <img class="img-responsive" style="max-width: 154px; max-height: 103px" src="${ctx}{{pricute}}" alt="">
    </a>-->
    <a href="${ctx}/admin/ticket/pricute/{{ticketId}}" target="_blank" class="thumbnail" data-rel="fancybox-button">
        <img class="img-responsive" style="max-width: 154px; max-height: 103px" src="${ctx}{{pricute}}" alt="">
    </a>
    {{else}}
    暂无图片
    {{/if}}
</script>
</@override>
<@override name="viewparams">
g.customer = '${customer}';
g.optDate = '${optDate}';
g.wx_tpl = '#wx_template';
g.pricute_tpl = '#pricute_template';
</@override>
<@override name="viewmodule">ticket_stat_detail</@override>
<@extends name="../../_basic/main.ftl"></@extends>

